<?php
/** @var AreaController $this */
/** @var Area $model */
//$this->breadcrumbs=array(
//	'Areas'=>array('index'),
//	Yii::t('AweCrud.app', 'Manage'),
//);

$this->menu=array(
	array('label' => Yii::t('AweCrud.app', 'List') . ' ' . Area::label(2), 'icon' => 'list', 'url' => array('index')),
	array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . Area::label(), 'icon' => 'plus', 'url' => array('create')),
);


?>

<fieldset>
    <legend>
        <?php echo Yii::t('AweCrud.app', 'Manage') ?> <?php echo Area::label(2) ?>    </legend>



<?php $this->widget('bootstrap.widgets.TbGridView',array(
    'id' => 'area-grid',
    'type' => 'striped condensed',
    'dataProvider' => $model->search(),
    'filter' => $model,
    'columns' => array(

        'nombre',
        'descripcion',
        'num_horas',
        array(
                    'name' => 'id_carrera',
                    'value' => 'isset($data->idCarrera) ? $data->idCarrera : null',
                    'filter' => CHtml::listData(Carrera::model()->findAll(), 'id', Carrera::representingColumn()),
                ),
        
        array(
                'name' => 'estado',
                'filter' => $model->estadosOptions,
            ),
		array(
                'class' => 'bootstrap.widgets.TbButtonColumn',
                'template' => '{view} {update}'
            ),
	),
)); ?>
</fieldset>